<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>{$title|default=''}</title>
	<meta name="description" content="" />
	<meta name="viewport" content="width=device-width; initial-scale=1.0" />	
	<link rel="stylesheet" href="__RES__/common/base.css" />
	<link rel="stylesheet" href="__RES__/item/css/common.css" />	
	{block name="head"}{/block}
</head>
<body>	
	
	{if condition="is_module_install('member')"}
	
		<div id="top">		
			<div class="allWrap">
				<ul>
					{if condition="session('member_user_auth')"}
						<li><a href="{:url('/member')}">会员中心</a></li>
						<li><a href="{:url('/logout')}">退出</a></li>
					{else /}
						<li><a class="pointer" id="reg">注册</a></li>
						<li><a class="pointer" id="login">登录</a></li>
					{/if}
				</ul>
				<div class="clearfix"></div>
			</div>
		</div>
	{/if}
	
	<div id="header" class="allWrap">
		<ul>
		<li><a href="{$root}">首页</a></li>
		</ul>  
		{:widget('Widget/category')}
	</div>	
	
	{block name="content"}
			
	{/block}
		
	<div id="footer">
		<div class="allWrap">
		footer
		</div>
	</div>	
</body>

{block name="jquery"}
<script src="__PUBLIC__/js/jquery/jquery-2.0.3.min.js"></script>
<script src="__PUBLIC__/js/jquery/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/artDialog/iframeTools.js"></script>
<link href="__PUBLIC__/artDialog/skins/default.css" rel="stylesheet" type="text/css" />	
<script src="__RES__/item/js/common.js"></script>
{/block}
{block name="javascript"}{/block}
</html>